package org.dromara.visitor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.visitor.domain.dto.DeptBO;
import org.dromara.visitor.domain.dto.PhoneBookQueryReq;
import org.dromara.visitor.domain.dto.PhoneBookResp;
import org.dromara.visitor.domain.entity.PhoneBook;

import java.util.List;

public interface PhoneBookMapper extends BaseMapper<PhoneBook> {
    List<PhoneBookResp> listPage(Page page, @Param("req") PhoneBookQueryReq req);

    List<DeptBO> listAllDepts();
}
